#ifndef MLIB_H__
#define MLIB_H__
#include<stdlib.h>
#include<stdio.h>
#include"sitetype.h"
#include"proto.h"

struct mlib_listentry_st
{   //每一个频道的信息
  chnid_t chnid;
  uint8_t *desc;
};

int mlib_getchnlist(struct msg_list_st **mchnarr, int *index);
int mlib_freechnlist(struct msg_listentry_st *mchn);
ssize_t mlib_readchn(chnid_t, void *, size_t);

  extern int totalsize;



#endif // !MLIB_H__
